///<reference path="./typings/jquery/jquery.d.ts"/>
///<reference path="./typings/sharepoint/sharepoint.d.ts"/>
///<reference path="./typings/requirejs/require.d.ts"/>
///<reference path="./modules/utilities.ts"/>
///<reference path="./modules/Taxonomy.ts"/>
var __extends = this.__extends || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    __.prototype = b.prototype;
    d.prototype = new __();
};
define(["require", "exports", "modules/utilities", "modules/Taxonomy"], function(require, exports, __m_Util__, __m_Tax__) {
    var m_Util = __m_Util__;
    var m_Tax = __m_Tax__;

    var App = (function (_super) {
        __extends(App, _super);
        function App() {
            _super.call(this);

            // Dependency of type SP.Taxonomy.TermStore
            var termStore = m_Tax.Taxonomy.Dependencies.GetTermStore("Managed Metadata Service");
            this.ApplyBinding(termStore);

            // Dependency of type SP.Taxonomy.TermGroup
            var termGroup = m_Tax.Taxonomy.Dependencies.GetTermGroup(termStore, "DMS");
            this.ApplyBinding(termGroup);

            // Create a typed Dependency
            var termSet = m_Tax.Taxonomy.Dependencies.GetTermSet(termGroup, "Languages");
            this.ApplyBinding(termSet);

            if (this.MoveNext()) {
                this.ResolveCurrent();
            }
        }
        return App;
    })(m_Util.Utilities.AsyncObserver);
    exports.App = App;

    jQuery(document).ready(function () {
        var app = new App();
    });
});
//# sourceMappingURL=App.js.map
